package com.wocai.jrt.orgadmin.employee.service.impl;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.employee.dao.CheckinDao;
import com.wocai.jrt.orgadmin.employee.model.Checkin;
import com.wocai.jrt.orgadmin.employee.model.CheckinBean;
import com.wocai.jrt.orgadmin.employee.model.Employee;
import com.wocai.jrt.orgadmin.employee.service.spi.CheckinService;
import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 员工签到相关的service业务实现。
 * @author yinlei
 * @date 2015-8-4 15:49:28
 */
@Named
public class CheckinServiceImpl extends MyBatisServiceImpl<Checkin, CheckinBean, String> implements CheckinService {
	
	private CheckinDao checkinDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<Checkin, CheckinBean, String> checkinDao) {
		this.baseDao = checkinDao;
		this.checkinDao = (CheckinDao) checkinDao;
	}

	@Override
	public List<Employee> queryPageList(Employee params) {
		return checkinDao.queryPageList(params);
	}

	@Override
	public Integer queryPageListCount(Employee params) {
		return checkinDao.queryPageListCount(params);
	}
}
